<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>登录</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" th:href="@{/js/plugins/bootstrap/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/js/plugins/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/js/plugins/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/css/AdminLTE.min.css}">

    <!-- jQuery 3 -->
    <script th:src="@{/js/jquery.min.js}"></script>
    <!-- jQuery UI 1.11.4 -->
    <script th:src="@{~/js/plugins/jQueryUI/jquery-ui.js}" th:inline="javascript" type="text/javascript"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/js/plugins/bootstrap/js/bootstrap.min.js}"></script>
    <!--BootStrap Validator-->
    <script th:src="@{~/js/plugins/bootstrap-validator/js/bootstrapValidator.js}" th:inline="javascript" type="text/javascript"></script>

    <script th:src="@{~/js/biz/login.js}" th:inline="javascript" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function(){
            Login.init();
        });
    </script>

</head>
<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">
        <b>浪潮</b>管理系统
    </div>

    <div class="login-box-body">

        <form id="loginForm"  th:action="@{/login}" method="post">
            <div class="form-group has-feedback">
                <input type="text" name="username" class="form-control" placeholder="用户名">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" name="password" class="form-control" placeholder="密码">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input name="remember-me" type="checkbox"> 下次自动登录
            </div>
            <div class="text-center">
                    <button type="submit" class="btn btn-primary" onsubmit="Login.login()">登录</button>
                    <button type="button" class="btn btn-default" onclick="Login.restForm()" style="margin-left: 40px">重置</button>
            </div>
        </form>

        <div class="social-auth-links text-center" th:if="${loginError}">
            <p style="color: red" th:text="${errorMsg}"></p>
        </div>

    </div>
</div>
</body>
</html>
